﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DNA.Mvc.Community
{
    /// <summary>
    /// Define the forum data context.
    /// </summary>
    public interface IForumContext:IUnitOfWork,IDisposable
    {
        IForumRepository Forums { get; }
        
        IPostRepostiory Posts { get; }

        IThreadRepository Threads { get; }

        IRepository<Moderator> Moderators { get; }

        IRepository<Attachment> Attachments { get; }

        IRepository<Rank> Ranks { get; }

        Thread CreateThread(int forumID, Post post, bool isPinned, bool isLocked);
    }
}
